#include "CUser.h"

CUser::CUser()
{
    //ctor
}

void CUser::Init()
{
    int i;
    for (i=0;i<3;i++)
        m_score[i].resize(3);
}

void CUser::Read(ifstream *ifs)
{
    (*ifs)>>m_name;
}

void CUser::InsertMark(int length,int width,int mark)
{
    m_score[length][width]=mark;
}

bool CUser::Islogin(string name)
{
    if (name == this->m_name)
        return true;
    else
        return false;
}

CUser::~CUser()
{
    //dtor
}
